package com.masterclient.app.businessmodule.settingmodule;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;

import com.eoner.managerlibrary.system.SystemConfigStorage;
import com.masterclient.app.BaseActivity;
import com.masterclient.app.R;
import com.masterclient.app.modules.bridge.BridgeActivity;

import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * 作者：sean
 * 创建时间：2017/8/26 15:12
 * 功能说明：
 */

public class AccountSafeActivity extends BaseActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_account_safe);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.rl_back,R.id.ll_modify_password,R.id.log_off_layout})
    void onClick(View v){
        Intent intent = null;
        switch (v.getId()){
            case R.id.rl_back:
                finish();
                break;
            case R.id.ll_modify_password:
                startActivitry(ModifyPwdActivity.class,null);
                break;
            case R.id.log_off_layout:
                intent = new Intent(AccountSafeActivity.this, BridgeActivity.class);
                intent.putExtra("url", SystemConfigStorage.getInstance().getAccountLoginOffUrl());
                intent.putExtra("title","注销账户");
                startActivity(intent);
                break;
        }
    }
}
